package com.qth.valet.common.utils;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class AmountUtil {

    public static String formatAmount(Long amount){
        return new BigDecimal(amount).divide(new BigDecimal(100), 2, RoundingMode.HALF_UP).doubleValue() + "";
    }

    public static void main(String[] args) {
        String s = formatAmount(3000L);
        System.out.println(s);
    }

}
